$(function () {
  $.getJSON("data/index.json", function (data) {

    data.map((item,index) => {
      let one = $("#moban").html()
      for (key in item) { 
        one = one.replace(`{${key}}`, item[key])
      }
      one = one.replace('{id}', index) 
      one = one.replace('{id1}', index) 
      one = $($.parseHTML(one));
      one.show(); 
      $("#content").append(one)
    })


  })
})

